import request from '@/utils/request'

// 查询评测用例列表
export function listCase(query) {
  return request({
    url: '/docase/reviewcase/list',
    method: 'get',
    params: query
  })
}

// 查询评测用例详细
export function getCase(reviewCaseId) {
  return request({
    url: '/docase/reviewcase/' + reviewCaseId,
    method: 'get'
  })
}

// 新增评测用例
export function addCase(data) {
  return request({
    url: '/docase/reviewcase',
    method: 'post',
    data: data
  })
}

// 修改评测用例
export function updateCase(data) {
  return request({
    url: '/docase/reviewcase',
    method: 'put',
    data: data
  })
}

// 删除评测用例
export function delCase(reviewCaseId) {
  return request({
    url: '/docase/reviewcase/' + reviewCaseId,
    method: 'delete'
  })
}
